package com.example.mybatis.Service;

import com.example.mybatis.mapper.UserInfoMapper;
import com.example.mybatis.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> getUserAll() {
       return userInfoMapper.getUserInfoAll();
    }

    public List<UserInfo> getUser(){
        return userInfoMapper.getInfo(1);
    }

    public  List<UserInfo> getUser2(){
        return  userInfoMapper.getInfo2(1);
    }
}
